import request from '@/utils/request'

export function getCarportSellinfo(query){
  return request({
    url: 'system/carportsell/getcarportSellinfo',
    method: 'get',
    params:  query
  });
}

// 查询车位销售列表
export function listCarportsell(query) {
  return request({
    url: '/system/carportsell/list',
    method: 'get',
    params: query
  })
}

// 查询车位销售详细
export function getCarportsell(sellid) {
  return request({
    url: '/system/carportsell/' + sellid,
    method: 'get'
  })
}

// 新增车位销售
export function addCarportsell(data) {
  return request({
    url: '/system/carportsell',
    method: 'post',
    data: data
  })
}

// 修改车位销售
export function updateCarportsell(data) {
  return request({
    url: '/system/carportsell',
    method: 'put',
    data: data
  })
}

// 删除车位销售
export function delCarportsell(sellid) {
  return request({
    url: '/system/carportsell/' + sellid,
    method: 'delete'
  })
}
